<html>
<head>
<meta http-equiv="content-Type" content="text/html; charset=utf-8" />
<title></title>
<style>
*{
	margin:0px;
	padding:0px;
}
body{
	font-size:12px;
	font-family:"宋体",Arial, Helvetica, sans-serif;
}
img{
	border:0px none;
}
table{
	border-collapse:collapse;border-spacing:0;
}
th,td{padding:5px}
input{
	outline:none;
}
input.txt {background-color: #f9f9f9;border: 1px solid #CCCCCC;border-radius: 2px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;color: #666666;font-family: Arial,Verdana,'Helvetica Neue',Helvetica,Arial,Geneva,sans-serif;font-size: 12px;height: 26px;margin-bottom: 6px;margin-right:6px;outline: medium none;padding: 4px;transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;_border:1px #d2d2d2 solid; _line-height:24px; _padding:0 5px; _height:24px;_background:url(../images/inputbg.gif); _width:100px;}
textarea {background-color: #f9f9f9;border: 1px solid #CCCCCC;border-radius: 2px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;color: #666666;font-family: Arial,Verdana,'Helvetica Neue',Helvetica,Arial,Geneva,sans-serif;font-size: 12px;margin-bottom: 6px;outline: medium none;padding: 4px;transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;}
textarea{vertical-align: middle;}
input.txt:focus, textarea:focus {background-color: #FCFDFF;border: 1px solid #A1D0FF;box-shadow: 0 0 2px #80BFFF, 0 1px 2px rgba(0, 0, 0, 0.15) inset;color: #000000;}

select {width:150px;background-color: #f9f9f9;border: 1px solid #CCCCCC;border-radius: 2px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;color: #666666;font-family: Arial,Verdana,'Helvetica Neue',Helvetica,Arial,Geneva,sans-serif;font-size: 12px;height: 26px;margin-right:6px;margin-bottom: 6px;outline: medium none;padding: 4px;transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;}
select:focus {background-color: #FCFDFF;border: 1px solid #A1D0FF;box-shadow: 0 0 2px #80BFFF, 0 1px 2px rgba(0, 0, 0, 0.15) inset;color: #000000;}
ul{
	list-style:none;
}

a {
    color: #252525;
    text-decoration: none;	
}
a:hover {
    color: #CC0000;
    text-decoration: none;
}
</style>

<style>
.divstart_publish {
    background-color: #E3E9EE;

    text-align: left;
    width: 900px;
}
.divstart_publish .divstart_bd {
	padding-left:180px;
	padding-bottom:0px;	
	margin:10px 10px;
    border: 1px solid #C7CBD1;
    background: url("<?=$this->_webroot('divstart/left.png')?>") repeat-y scroll 0 0 transparent;	
    background-color: #fff;	
}
.divstart_publish .divstart_bd .form{height:auto;overflow:hidden;margin:10px 10px 10px 0;}
.divstart_publish .divstart_bd .form table tr{border-top:1px dashed #c1d3e7;}
.divstart_publish .divstart_bd .form {padding:7px 0;border-bottom:1px dashed #c1d3e7;}
.divstart_publish .divstart_bd .form input,
.divstart_publish .divstart_bd .form TEXTAREA,
.divstart_publish .divstart_bd .form select{
    padding:4px;
}
.divstart_publish .divstart_bd .form .label{
	display:block;
	float:left;
	width:130px;
	text-align:right;
	font-size:14px;
	font-weight:bold
}
.divstart_publish .divstart_bd .form em{
	font-size:12px;
	font-weight:normal;
	font-style:normal;
}
.divstart_publish .divstart_bd .form .btn{
    background-color: #4db1e0;
	background: linear-gradient(to bottom, #4482c9 0%, #245d9f 100%) repeat scroll 0 0 transparent;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4482c9',endColorstr='#245d9f',GradientType=0);
	color:#fff;
	font-size:14px;
	font-weight:bold;
	border:1px solid #244d7c;
	padding:5px 15px;
	padding:1px solid #538ed0;
}
.divstart_publish .divstart_left {
	display: inline;
    float:left;
	width:170px;
	margin-left:-180px;
}
.divstart_publish .divstart_left ul  {
	list-style:none;
	margin-top:15px;		
}
.divstart_publish .divstart_left ul li {
	margin-left:2px;	
 	padding-left:10px;	
    height:30px; 
    width:153px;	
    line-height: 30px;
    font-size: 15px;	
}
.divstart_publish .divstart_left ul li.cur {
    background-color: #fff;
    border-left: 5px solid #4380C0;	
    border-top: 1px solid #C7CBD1;
    border-bottom: 1px solid #C7CBD1;	
 	padding-left:6px;		
}
.divstart_publish .divstart_left ul li.cur a {	
    font-size: 14px;
    font-weight: bold;	
    color: #4380C0;	
    text-decoration: none;	
}
.divstart_publish .divstart_left ul li a:hover {	
    font-size: 14px;
    font-weight: bold;	
    color: #4380C0;	
    text-decoration: none;	
}
.clear{
	height:0px;
	overflow:hidden;
	clear:both;
}
.divstart_publish .divstart_right {
    background-color: #fff;
    float:right;
	width:690px;
	margin-right:10px;	
}
.divstart_publish .divstart_right .divstart_title {
    font-size: 14px;
    font-weight: bold;	
    color: #252525;	
	margin-top:20px;	
}
.divstart_publish .divstart_right .divstart_tip {
    background-color: #F0F9FA;
	margin-top:5px;
    border: 1px dashed #95BEED;	
}
.divstart_publish .divstart_right .divstart_tip span{
	margin-left:10px;
 	padding-left:10px;	    	
    width:40px;
	height:25px;
    line-height: 25px;	
    color: #fff;
    font-size: 14px;
    font-weight: bold;	
    background-color: #3D74B5;	
	display:block;	
}
.divstart_publish .divstart_right .divstart_tip h3{
	margin-left:10px;  
	margin-top:10px;   	
    color: #252525;
    font-size: 15px;
    font-weight: bold;			
}
.divstart_publish .divstart_right .divstart_tip p{
	padding:10px 0 10px 10px;
    color: #252525;
    font-size: 14px;		
}
.divstart_publish .divstart_right .divstart_config {
    background-color: #F0F9FA;
	margin-top:10px;
    border: 1px solid #86ADD8;		
    padding-bottom:10px;
}
.divstart_publish .divstart_right .divstart_config .title{
    background: url("<?=$this->_webroot('divstart/config.png')?>") repeat-x scroll 0 0 transparent;
	height:35px;
    border-bottom: 1px solid #86ADD8;	
    line-height: 35px;		
	display:block;	
    font-size: 14px;
    color: #252525;	
	padding-left:10px;	
}
.divstart_publish .divstart_right .divstart_config .title span{
    font-weight: bold;	
}
.divstart_publish .divstart_right .divstart_config .filed{
	padding:10px 0 10px 10px;
    font-size: 14px;
    color: #252525;	
}
.divstart_publish .divstart_right .divstart_config .filed span{
    font-weight: bold;	
}
.divstart_publish .divstart_right .divstart_config .filedtip{
	margin-top:6px;
 	padding:10px 10px; 
    border: 1px solid #A1C1E6;			
    font-size: 14px;
    color: #3D75B6;	
	margin-left:10px;	
	margin-right:10px;
    background-color: #fff;	
    position: relative;		
}
.divstart_publish .divstart_right .divstart_config .linetip {
    border-top: 1px dashed #95BEED;
	height:1px;
	margin-top:10px;
	margin-left:10px;	
	margin-right:10px;	
}

.divstart_publish .divstart_right .divstart_config .filedtip i{	
    background: url("<?=$this->_webroot('divstart/tip.png')?>") no-repeat scroll 0 0 transparent;
    height: 8px;
    width:10px;
    position: absolute;
    left: 15px;
    top: -7px;	
}
.divstart_publish .divstart_right .divstart_config .filedtip span{
    font-weight: bold;	
}

</style>
</head>
<body>

<div class="divstart_publish" >
		<div class="divstart_bd">		
		    <div class="divstart_left">
			    <ul>
					<li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanageedit/?<?php echo $urlstr ; ?>" target="_self">标签修改</a></li>
					<li class="cur"><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanageactiveedit/?<?php echo $urlstr ; ?>"   target="_self">标签时间控制</a></li>
					<li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanagetableedit/?<?php echo $urlstr ; ?>"   target="_self">表单数据调用</a></li>
                    <li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanagetableuseredit/?<?php echo $urlstr ; ?>"   target="_self">用户数据修改</a></li>
					<li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanagecacheedit/?<?php echo $urlstr ; ?>"   target="_self">缓存数据调用</a></li>											 
					<li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanagehtmledit/?<?php echo $urlstr ; ?>"   target="_self">模板修改</a></li>
					<li><a href="<?php echo $this->base;?>/index.php/tagsedit/viewmanagelabeledit/?<?php echo $urlstr ; ?>"   target="_self">Labels修改</a></li>	
					<li><a href="<?php echo $this->base;?>/index.php/tagsedit/icondatalist/?<?php echo $urlstr ; ?>"   target="_self">缓存数据管理</a></li>													  
					<!-- <li><a href="<?php echo $fromurl ; ?>"   target="_self">返回主站</a></li>--> 
				</ul>
			</div>
		    <div class="divstart_right">
			    <div class="divstart_title">标签时间控制</div> 				
			    <div class="divstart_tip">
				    <span>提示</span>
					<h3>标签格式例子：</h3>
					<p>
					&lt;psp:tags tablename='content_1.con_id|content.id' fields='content.id:icon2|content_1.my_test:icon1' order='content.add_time desc' limit='0,10' conditions='is_show=1' pageurl='?app=new&act=index&cat=$GLOBALS[cat]' pageiconname='' htmlname='html1' htmlconfig='' iconname='title1' iconfields='' icondata='' cachedatadir='' cachefields='' labels='' /&gt;
					</p>
				</div>	
			    <div class="divstart_config">
				    <div class="title"><span>属性说明</span>(注意：属性值使用“'”英文状态的单引号括起来)</div>					
					<div class="filed">
					    <span>[tablename]:</span>
                        数据库表名，如果调用的数据只是一个表则其值为表名去掉数据库表前缀"<?php echo $DbPrefix ; ?>"，如tablename='content_1';如果为多个表则其值为表名1去掉数据库表前缀"{DB_PREFIX}",然后加"."，再加该表1的字段名1，再加"|"，再加表名2去掉数据库表前缀"{DB_PREFIX}"，再加该表2的字段名2，再加"|".....注意其中表1与表2的链接是通过字段名1与字段名2来相关的。比如：tablename='content_1.con_id|content.id',是指数据库表{DB_PREFIX}content_1与数据库表{DB_PREFIX}content坐链接通过字段con_id与id来链接。				
					</div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>tablename='content_1.con_id|content.id',是指数据库表{DB_PREFIX}content_1与数据库表{DB_PREFIX}content坐链接通过字段con_id与id来链接。
					</div>
					<div class="linetip"></div>
					<div class="filed">
					    <span>[fields]:</span>
                        表示从数据库表tablename中调用出来的数据然后把数据赋值给htmlname中相应的变量。比如:fields='content.id:icon2|content_1.my_test:icon1'就是将数据库中content.id的值对应给了标示icon2,其中标示icon2是在属性htmlname这个值的文件当中。如果是多个值要赋值，其格式为"值:标示|值:标示",其值与标示的顺序不能反。					
					</div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						fields='content.id:icon2|content_1.my_test:icon1'就是将数据库中content.id的值对应给了标示icon2,其中标示icon2是在属性htmlname这个值的文件当中。
					</div>					
					<div class="linetip"></div>
					<div class="filed">
					    <span>[order]:</span>
                     表示调用数据库时安那个字段升序，还是降序。比如order='content.add_time desc' 表示安字段content.add_time名降序，升序是asc。注意字段名与desc或asc之间至少要有一个空格。
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						order='content.add_time desc' 表示安字段content.add_time名降序，升序是asc。
					</div>	
					<div class="linetip"></div>					
					<div class="filed">
					    <span>[conditions]:</span>
                        表示从数据库中读取数据时要安什么条件来读取。比如conditions='is_show=1'就是说按字段is_show=1来判断读取数据。
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						conditions='is_show=1'就是说按字段is_show=1来判断读取数据。
					</div>						
					<div class="linetip"></div>					
					<div class="filed">
					    <span>[pageurl]:</span>
                     表示从数据库中读出大量数据时要分页时，分页的链接&lt;a&gt;得href的值。其中格式为?app=模块APP名&amp;act=前台app文件content的类中的函数名(其值为index:列表页,show:显示页)&amp;cat=该模块的分类id号,比如,pageurl='?app=new&act=index&cat=$GLOBALS[cat]'注意其格式可以自己定义。
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						pageurl='?app=new&act=index&cat=$GLOBALS[cat]'注意其格式可以自己定义。
					</div>	
					<div class="linetip"></div>
					<div class="filed">
					    <span>[pageiconname]:</span>
                     表示该分页数据调用的是那个标签iconname的值，其值就是要调用的标签中iconname的值，比如pageiconname='example',则表示调用的数据是&lt;phpscup:icon  iconname='example' /&gt;中tablename数据库中的值。注意：其使用一般是在分页的
htmlname文件不是在同一个文件当中，也就是标签example的htmlname='1'而pageiconname所在的标签的htmlname='2'。
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						pageiconname='example',则表示调用的数据是&lt;phpscup:icon  iconname='example' /&gt;中tablename数据库中的值。
					</div>	
					<div class="linetip"></div>
					<div class="filed">
					    <span>[htmlname]:</span>
                     表示要调用的显示数据的模板名，其所在位置是view/{VIEW_TYPE}/icon文件夹中，其值就是该文件夹中的文件的名称（不包括后缀），比如htmlname='html1'就是调用文件view/{VIEW_TYPE}/icon/html1.html来显示。
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						htmlname='html1'就是调用文件view/{VIEW_TYPE}/icon/html1.html来显示。
					</div>	
					<div class="linetip"></div>

					<div class="filed">
					    <span>[htmlconfig]:</span>
                     现在还没有使用到，其作用是设置htmlname文件当中一些显示的属性值，比如颜色，宽高等。
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						htmlconfig=''
					</div>
					<div class="linetip"></div>					
					<div class="filed">
					    <span>[iconname]:</span>
                        是标签的名字，是用来区分标签的，最好每个标签的名字不一样，否则可能会出现一些问题,比如iconname='a1'
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						iconname='a1'
					 </div>	
					<div class="linetip"></div>					 
					<div class="filed">
					    <span>[icondata]:</span>
                     其是用来存储一些临时的文件,其以缓存形式存储在view/{VIEW_TYPE}/icon/icontempdata文件夹中，可以在后台产生此数据，其值为该文件夹下的文件名(不包括后缀.icon),比如icondata='icon1'
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						icondata='icon1'
					</div>	
					<div class="linetip"></div>					
					<div class="filed">
					    <span>[iconfields]:</span>
                     其是用来将icondata中的数据对应到htmlname的显示层中去，其格式跟fields一样。
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						iconfields=''
					</div>	
					<div class="linetip"></div>
					<div class="filed">
					    <span>[cachedatadir]:</span>
                     其是用来调用本站的一些缓存文件的，其值为本站根目录下的相对目录的路径名，比如cachedatadir='data/cache/links.php'
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						cachedatadir='data/cache/links.php'
					</div>	
					<div class="linetip"></div>
					
					<div class="filed">
					    <span>[cachefields]:</span>
                     其是用来将cachedatadir中的数据对应到htmlname的显示层中去，其格式跟fields一样。
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						cachefields=''
					</div>	
					<div class="linetip"></div>
					
					<div class="filed">
					    <span>[labels]:</span>
                     用来把此标签当做显示字符的工具，比如labels='苹果'，则此标签显示出来的就是"苹果"。	
					 </div>			
                    <div class="filedtip">
                        <i></i>	
					    <span>比如：</span>
						labels='苹果'
					</div>		
					<div class="linetip"></div>
				
					
				</div>	
				
	
				
			</div>
		    <div class="clear"></div>	
		    <div  class="form">


<form action="<?php echo $this->base; ?>/index.php/tagsedit/viewmanageactiveeditpost" method="post" enctype="multipart/form-data">

<table width="100%" cellspacing="0" cellpadding="4" border="0" align="center"  class="table_style">
<tbody>
<tr  onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td  class="label">Icon名称:</td>
	<td><input type="text" maxlength="50" class="txt" value="<?php echo $iconname ;?>" name="data[iconname]" disabled="disabled"><em>(即属性iconname)</em></td>
</tr>

<tr  onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td  class="label">Icon权限限制:</td>
	<td><input type="text"  width="400px" class="txt" value="<?php echo $data['powerlimit'] ;?>" name="data[powerlimit]"></td>
</tr>


<tr  onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td class="label">开始时间:</td>
	<td> 
 <script src="http://localhost/phpscup_cms/admin/view/default/style/js/calenderJS.js"></script>
 <input  name="data[activetime_start]" class="txt"  size="20"  type="text" value="<?php echo $data['activetime_start']; ?>" id="activetime_start" onfocus="HS_setDate(this)" />     
    </td>
</tr>

<tr  onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td class="label">结束时间:</td>
	<td> 
       <input  name="data[activetime_end]" class="txt"  size="20"  type="text" value="<?php echo $data['activetime_end']; ?>" id="activetime_end" onfocus="HS_setDate(this)" /> 
    </td>
</tr>

<tr  onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td class="label">开始之前动作:</td>
	<td> 
	<select name="data[activebefore]">
		<option value=""  >请选择动作....</option>
	
<?php foreach((array)$activearray['before'] as $_key => $_value ) { ?>
                                           
		<option value="<?php echo $_value ;?>" <?php if ($data['activebefore'] == $_value) { ?> selected="selected" <?php } ?> ><?php echo $_value ;?></option>
                
<?php } ?>
	
	</select>      
    </td>
</tr>

<tr  onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td class="label">期间动作:</td>
	<td> 
	<select name="data[activeperiod]">
		<option value=""  >请选择动作....</option>
	
<?php foreach((array)$activearray['period'] as $_key => $_value ) { ?>
                                           
		<option value="<?php echo $_value ;?>" <?php if ($data['activeperiod'] == $_value) { ?> selected="selected" <?php } ?>  ><?php echo $_value ;?></option>
                
<?php } ?>
	
	</select>      
    </td>
</tr>

<tr  onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td class="label">结束之后动作:</td>
	<td> 
	<select name="data[activeafter]">
		<option value=""  >请选择动作....</option>
	
<?php foreach((array)$activearray['after'] as $_key => $_value ) { ?>
                                           
		<option value="<?php echo $_value ;?>" <?php if ($data['activeafter'] == $_value) { ?> selected="selected" <?php } ?>  ><?php echo $_value ;?></option>
                
<?php } ?>
	
	</select>      
    </td>
</tr>

<tr>
	<td>&nbsp;</td>
	<td>	
	<input type="hidden" name="data[pagename]" value="<?php echo $pagename ; ?>" />
	<input type="hidden" name="data[strtempdata]" value="<?php echo $strtempdata; ?>" />
	<input type="hidden" name="data[fromurl]" value="<?php echo $weburl; ?>" />
	
	<input type="hidden" name="data[compeld]" value="<?php echo $compeld; ?>" />	
	<input type="hidden" name="data[webroot]" value="<?php echo $webroot; ?>" />
	<input type="hidden" name="data[app]" value="<?php echo $app; ?>" />
	<input type="hidden" name="data[act]" value="<?php echo $act; ?>" />
	<input type="submit" value="提交" class="btn"></td>
</tr>
</tbody></table>
</form>                   			
			
			
		    </div>		
		</div>
</div>
</body>
</html>